import React, { Component } from 'react';
import {
    WhiteSpace,
    Flex,
    List,
    Button,
    Icon,
    Grid,
    Modal,
    Switch
} from 'antd-mobile';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import MyScroll from '../../components/MyScroll/MyScroll';
import CouponItem from '../../components/CouponItem/CouponItem'
import NoLazyImg from '../../components/NoLazyImg/NoLazyImg';
import NavTopBar from '../../components/NavTopBar/NavTopBar';
const Item = List.Item;



class Coupon extends Component {
    constructor(props) {
        super(props);
    }


    componentDidMount() {

    }



    render() {
        const { order, dispatch } = this.props;
        const { list, defaultAddress, addressEntities } = order;

        console.log(this.props);


        return (
            <Flex
                style={{
                    height:"100%"
                }}
                direction="column"

            >
                <NavTopBar dispatch={dispatch} title="优惠卷"></NavTopBar>
                <MyScroll>
                  <CouponItem></CouponItem>

                </MyScroll>



            </Flex>
        )
    }
}

export default connect(({order})=>({order}))(Coupon);
